package com.huike.clues.mapper;


import com.huike.clues.domain.TbClueTrackRecord;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 线索跟进记录Mapper接口
 * @date 2021-04-19
 */
@Mapper
public interface TbClueTrackRecordMapper {


    void insert(ClueTrackRecordVo tbClueTrackRecord);

    @Select("select id, clue_id, name, sex, age, weixin, qq, level, subject, record, next_time, type, false_reason, create_by, create_time, update_by, update_time from tb_clue_track_record where clue_id=#{clueId}")
    List<TbClueTrackRecord> selectByClueId(Long clueId);
}
